/* Remove all navbar, sidebar, body, and universal box-sizing styles since they're now in common.css */

/* Keep only Landing Page specific styles */
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background-color: #f8f8f8;
    background-image:
        linear-gradient(45deg, #dfc5c5 25%, transparent 25%, transparent 75%, #dfc5c5 75%, #dfc5c5),
        linear-gradient(-45deg, #dfc5c5 25%, transparent 25%, transparent 75%, #dfc5c5 75%, #dfc5c5);
    background-size: 40px 40px;
}

/* LANDING PAGE - HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    margin-top: 78px;
    top: -80px;
}

.hero-content {
    margin-top: -140px;
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
}

.hero-section .highlight {
    color: var(--primary);
    font-weight: 700;
}

.subheading {
    font-size: 1.25rem;
    color: var(--secondary);
    margin: 1rem 0;
}

.description {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button general styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none; /* Ensure links look like buttons */
    font-family: inherit;
    border: none;
    background: none;
}

.primary-btn {
    background-color: var(--primary);
    color: #fff;
}

.primary-btn:hover {
    background-color: #b71c1c;
}

.secondary-btn {
    border: 1px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
}

.secondary-btn:hover {
    background-color: #fbeaea;
}

.btn img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
}

.arrow img {
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.25rem;
    filter: invert(100%); /* Keeps arrow white on primary button */
}

/* LANDING PAGE - METRICS SECTION */
.metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background-color: white;
    font-family: inherit;
    margin-top: -170px;
    flex-wrap: wrap;
}

.metric-item {
    text-align: center;
    padding: 0 1rem;
    flex-basis: auto;
    min-width: 150px;
}

.metric-item h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.metric-item p {
    font-size: 0.95rem;
    color: #666;
}

.divider {
    height: 40px;
    width: 1px;
    background-color: #ccc;
}

/* LANDING PAGE - HEADLINE SECTION */
.headline-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
    position: relative;
    z-index: 0;
}

.headline-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.headline-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--secondary);
    font-weight: 300;
}

/* LANDING PAGE - TIMELINE CAROUSEL */
.journey-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f7f3f3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.journey-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin-bottom: 50px;
    color: var(--primary);
}

.journey-section .subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.journey-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* Navigation Buttons (external to carousel-wrapper) - Consider removing these if using internal carousel-nav */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 10; /* Ensure they are above content */
    cursor: pointer;
    padding: 0;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn img,
.next-btn img {
    width: 40px;
    height: 40px;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary);
    border-radius: 50%;
}

/* Progress Indicators */
.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.progress-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.progress-indicators .indicator.active {
    background-color: var(--primary);
}

/* Carousel Navigation (internal to journey-carousel-wrapper) */
.carousel-nav {
    background-color: rgba(44, 62, 80, 0.7);
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    outline: none;
}

.carousel-nav:hover {
    background-color: #2c3e50;
}

.carousel-nav.prev {
    left: -40px;
}

.carousel-nav.next {
    right: -40px;
}

.journey-carousel {
    display: flex;
    position: relative;
    width: 100%;
    height: 550px;
}

/* Individual Journey Item Styling */
.journey-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.journey-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.journey-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s ease-in-out;
}

.journey-item:hover img {
    filter: brightness(0.6);
}

.journey-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    padding: 30px;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    box-sizing: border-box;
}

.journey-item:hover .journey-content {
    transform: translateY(0);
}

.journey-content .year {
    font-size: 1.3em;
    font-weight: 700;
    color: #f1c40f;
    margin-bottom: 10px;
}

.journey-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.journey-content p {
    font-size: 1.05em;
    color: #bdc3c7;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.journey-item:hover .journey-content p {
    max-height: 100px;
    opacity: 1;
}

.hover-hint-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    background-color: #2ecc71;
    border-radius: 50%;
    opacity: 1;
    animation: pulse 1.5s infinite ease-in-out;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.journey-item:hover .hover-hint-dot {
    opacity: 0;
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

/* TEAM SECTION */
.team-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.section-title {
    font-size: 2.5em;
    font-weight: 300;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.Meet_the {
    color: var(--primary);
    font-weight: 500;
}

.section-title .highlight {
    font-weight: 700;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 60px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px; /* Add horizontal padding */
    max-width: 1200px; /* Constrain max-width */
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    font-size: 1.4em;
    color: var(--secondary);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* JOIN TEAM SECTION */

.join-team-section {
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.Join_our {
    color: var(--secondary);
    font-weight: 500;
}

.join-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f3f3;
    z-index: 1;
}

.join-team-section .container {
    position: relative;
    z-index: 2;
    padding: 0 20px; /* Add horizontal padding */
}

.join-team-section .section-title {
    color: #fff; /* This seems to be inherited from a previous state, changing to a more visible color for the "Join Our" part */
    margin-bottom: 20px;
}

.join-team-section .section-title .highlight {
    color: var(--primary);
}

.join-team-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--secondary);
}

.join-team-section .btn {
    margin-top: 20px;
}

.join-team-section .primary-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
}

.join-team-section .primary-btn:hover {
    background-color: #b71c1c;
}

.join-team-section .primary-btn .arrow img {
    filter: invert(100%);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-section {
        padding: 1.5rem;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .subheading {
        font-size: 1.15rem;
    }
    .description {
        font-size: 0.95rem;
    }
    .metrics {
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
    }
    .metric-item h2 {
        font-size: 1.8rem;
    }
    .metric-item p {
        font-size: 0.9rem;
    }
    .headline-content p {
        font-size: 1.3rem;
    }
    .journey-section h2 {
        font-size: 2.5em;
    }
    .carousel-nav.prev {
        left: 10px;
    }
    .carousel-nav.next {
        right: 10px;
    }
    .prev-btn, .next-btn {
        display: none;
    }
}

/* Adjustments for screens up to 768px (Tablets, larger phones) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 1rem;
        min-height: 80vh; /* Reduce min-height for smaller screens */
        margin-top: 60px; /* Adjust for potentially smaller navbar */
        top: 0; /* Remove negative top margin if needed */
    }
    .hero-content {
        margin-top: 0; /* Remove negative margin for better vertical flow */
        padding: 0 10px;
    }
    .hero-section h1 {
        font-size: 2.2rem; /* Smaller heading */
    }
    .subheading {
        font-size: 1rem;
    }
    .description {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center; /* Center stacked buttons */
    }
    .btn {
        width: 100%; /* Make buttons take full width when stacked */
        max-width: 250px; /* Limit max width for aesthetic */
        padding: 0.75rem 1rem; /* Slightly less padding */
    }

    /* Metrics Section */
    .metrics {
        flex-direction: column; /* Stack metric items vertically */
        gap: 1rem;
        padding: 2rem 1rem;
        margin-top: 20px; /* Adjust margin */
    }
    .divider {
        height: 1px; /* Make divider horizontal */
        width: 80%; /* Span across the width */
        margin: 1rem 0; /* Add vertical margin */
    }
    .metric-item {
        width: 100%; /* Make items take full width when stacked */
    }

    /* Headline Section */
    .headline-section {
        padding: 3rem 1rem;
    }
    .headline-content p {
        font-size: 1.1rem;
    }

    /* Journey Section (Timeline Carousel) */
    .journey-section {
        padding: 50px 0;
    }
    .journey-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .journey-carousel-wrapper {
        height: 350px; /* Reduce carousel height */
        margin: 0 10px; /* Add some side margin for smaller screens */
    }
    .carousel-nav {
        padding: 10px 7px;
        font-size: 1.3em;
    }
    .carousel-nav.prev {
        left: 5px; /* Bring buttons closer to edge */
    }
    .carousel-nav.next {
        right: 5px; /* Bring buttons closer to edge */
    }
    .journey-content {
        padding: 20px;
    }
    .journey-content .year {
        font-size: 1.1em;
    }
    .journey-content h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    .journey-content p {
        font-size: 0.95em;
        line-height: 1.6;
        max-height: 80px; /* Allow more content to show initially on hover */
    }
    .hover-hint-dot {
        width: 12px;
        height: 12px;
        top: 15px;
        right: 15px;
    }

    /* Team Section */
    .team-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2em;
    }
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .values-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        padding: 0 15px;
    }
    .value-card {
        padding: 25px;
    }

    /* Join Team Section */
    .join-team-section {
        padding: 60px 0;
    }
    .join-team-description {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    .join-team-section .section-title {
        font-size: 2em;
    }
}

/* Adjustments for screens up to 480px (Smaller phones) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .subheading {
        font-size: 0.9rem;
    }
    .description {
        font-size: 0.85rem;
    }

    /* Metrics Section - Already handled well by flex-direction: column */
    .metric-item h2 {
        font-size: 1.5rem;
    }
    .metric-item p {
        font-size: 0.85rem;
    }

    /* Headline Section */
    .headline-section {
        padding: 2rem 0.5rem;
    }
    .headline-content p {
        font-size: 1rem;
    }

    /* Journey Section */
    .journey-carousel-wrapper {
        height: 280px; /* Even smaller carousel height */
        margin: 0 5px; /* Minimal side margin */
    }
    .carousel-nav {
        padding: 8px 5px;
        font-size: 1.1em;
    }
    .journey-content {
        padding: 15px;
    }
    .journey-content .year {
        font-size: 1em;
    }
    .journey-content h3 {
        font-size: 1.3em;
    }
    .journey-content p {
        font-size: 0.85em;
        max-height: 60px; /* Adjust to prevent too much text on very small screens */
    }

    /* Team Section */
    .team-section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8em;
    }
    .section-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .value-card h3 {
        font-size: 1.2em;
    }
    .value-card p {
        font-size: 0.9em;
    }

    /* Join Team Section */
    .join-team-section {
        padding: 40px 0;
    }
    .join-team-description {
        font-size: 0.9em;
        margin-bottom: 25px;
    }
    .join-team-section .section-title {
        font-size: 1.8em;
    }
}